package test.com.flexoop.utilities.dateutils {

	import com.flexoop.utilities.dateutils.DateUtils;
	
	import org.flexunit.Assert;

	public class DaysInMonthTest {

		public function DaysInMonthTest() {
		}
		
		[Test]
		public function testDaysInMonth():void {
			Assert.assertEquals( 31, DateUtils.daysInMonth( new Date( 2009, 9, 31 ) ) );
			Assert.assertEquals( 31, DateUtils.daysInMonth( new Date( 2009, 9, 1 ) ) );
			Assert.assertEquals( 28, DateUtils.daysInMonth( new Date( 2009, 1, 28 ) ) );
			Assert.assertEquals( 28, DateUtils.daysInMonth( new Date( 2009, 1, 15 ) ) );
			Assert.assertEquals( 29, DateUtils.daysInMonth( new Date( 2008, 1, 21 ) ) );
			Assert.assertEquals( 30, DateUtils.daysInMonth( new Date( 2004, 8, 18 ) ) );
		}

	}
}